{template 'common/header'}


<div class="pull-left col-sm-2 caidan">
	{template 'left_nav'}
</div>

<div class="pull-left col-sm-10" >


		<div class="we7-page-title">基础配置</div>
		<link rel="stylesheet" type="text/css" href="{MODULE_URL}template/style/main.css">


		<form id="reply-forms" action="" method="post" enctype="multipart/form-data" ng-controller="KeywordReply"
			class="ng-pristine ng-valid ng-scope">

			
			<input type="hidden" name="op" class="form-control" id="" value="{if $info[id] }edit{/if}">

		<div class="panel panel-default">
			<div class="panel-body">
					<div class="form-group">
							<label for="firstname" class="col-sm-2 control-label">配置名称</label>
							<div class="col-sm-10">
								<input type="text" name="title" class="form-control" id="title" placeholder="请输入配置名称"
									value="{$info[title]}">
							</div>
						</div>
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">小程序名称</label>
					<div class="col-sm-10">
						<input type="text" name="sitename" class="form-control" placeholder="请输入小程序名称"
							value="{$info[sitename]}">
					</div>
				</div>


				
			</div>
		</div>

		<h4>模板选择</h4>
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">选择首页模板</label>
					<div class="col-sm-10 ">
						<div class="radio col-sm-4">
							<div class="center-block">
								<img class="img-responsive center-block moban-image" src="{MODULE_URL}images/moban1.jpg">
							</div>
							<label class="center-block text-center">


								<input type="radio" name="template" id="optionsRadios1" value="1" {if ($info[template]== 1) OR ($info[template] < 1)  }
									checked {/if}>默认模板
							</label>
						</div>
						<div class="radio col-sm-4 martopten">
							<div class="center">
								<img class="img-responsive center-block moban-image" src="{MODULE_URL}images/moban2.jpg">
							</div>
							<label class="center-block text-center">
								<input type="radio" name="template" id="optionsRadios2" value="2" {if $info[template]==2}
									checked {/if}>模板2
							</label>
						</div>
						<!-- <div class="radio col-sm-4 martopten">
							<div class="center">
								<img class="img-responsive center-block moban-image" src="{MODULE_URL}images/moban3.jpg">
							</div>
							<label class="center-block text-center">
								<input type="radio" name="template" id="optionsRadios3" value="3" {if $info[template]==3}
									checked {/if}>模板3
							</label>
						</div> -->
					</div>
				</div>

			</div>

		</div>

		<h4>“状态栏”颜色设置</h4>
		<div class="panel panel-default">
				<div class="panel-body">
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">状态栏背景色</label>
						<div class="col-sm-10">
							<input type="text" name="head_color" class="form-control" id="name" placeholder="请输入背景色值#ff0000"
								value="{if !$info[head_color]}#ff0000{else}{$info[head_color]}{/if}">
						</div>
					</div>


					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">状态栏字体颜色</label>
						<div class="col-sm-10">
							<select name="font_color" class="form-control">
								<option value="#ffffff" {if $info[font_color] == '#ffffff'} selected="selected" {/if}>黑色</option>
								<option value="#000000" {if $info[font_color] == '#000000'} selected="selected" {/if}>白色</option>
								
						
							</select>
						
						</div>
					</div>

				


				</div>
			</div>
		<h4>“底部导航”颜色设置</h4>
		<div class="panel panel-default">
				<div class="panel-body">
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">导航栏背景色</label>
						<div class="col-sm-10">
							<input type="text" name="nav_background_color" class="form-control" id="name" placeholder="请输入背景色值#ff0000"
								value="{if !$info[nav_background_color]}#ff0000{else}{$info[nav_background_color]}{/if}">
						</div>
					</div>


					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">未选中文字颜色</label>
						<div class="col-sm-10">
							<input type="text" name="nav_font_color" class="form-control" id="title" placeholder="请输入字体设置#000000"
								value="{if !$info[nav_font_color]}#000000{else}{$info[nav_font_color]}{/if}">
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">已选中文字颜色</label>
						<div class="col-sm-10">
							<input type="text" name="nav_sfont_color" class="form-control" id="title" placeholder="请输入字体设置#ffffff"
								value="{if !$info[nav_sfont_color]}#ffffff{else}{$info[nav_sfont_color]}{/if}">
						</div>
					</div>
				


				</div>
			</div>


		<div class="clearfix"></div>
		<div class="form-group reply-post-action we7-margin-top" style="text-align: center;">
			<div class="">

				<input type="submit" class="btn btn-primary js-editor-submit multi-submit" style="width:200px" value="保存">

			</div>
		</div>


		</form>

		<script>
			$(".fanslist_table").hide();
			var ggposttype = 'add';
			var currentggObj = null;
			
			$("form").eq(0).submit(function(){
			
				if($("input[name=sitename]").val()==''){

					util.message('请输入小程序名称');
					return false;
				}

				return true;
			})

			
		</script>
</div>


{template 'common/footer'}